package com.zjs.mapper;

import com.zjs.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zjs.entity.dto.UserPasswordDTO;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 午子牛
 * @since 2022-01-27
 */
public interface UserMapper extends BaseMapper<User> {
    @Update("update sys_user set password = #{newPassword} where username = #{username} and password = #{password}")
    int updatePassword(UserPasswordDTO userPasswordDTO);



}
